<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-if指令</title>
    <script src="vue.js"></script>
</head>

<body>
    <div id="app">
        <div v-if="isShow">显示我</div>
        <div v-else>不显示我</div>
    </div>
</body>

</html>
<script>
    var vm = new Vue({
        el:"#app",
        data:{
            isShow:true
        }
    })
</script>